🌎 rns.kin.earth git 🌍
Commit 21c6dbfce07cf25c81a4693c1f82a2bb49b5df5f
Parents : 70cbb8d
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-09-19T10:11:45+02:00
Added check for destination direction on annonuce
Changes
Diff
diff --git a/RNS/Destination.py b/RNS/Destination.py
index f79a6896..960bcd96 100755
--- a/RNS/Destination.py
+++ b/RNS/Destination.py
@@ -181,6 +181,9 @@ class Destination:
"""
if self.type != Destination.SINGLE:
raise TypeError("Only SINGLE destination types can be announced")
+
+ if self.direction != Destination.IN:
+ raise TypeError("Only IN destination types can be announced")
now = time.time()
stale_responses = []
Served by rngit 1.5.2 - Generated in 0.04s